import request from "@/api/myRequest.js"

//查看广告列表
function adsList(){
	 return request({
		 url:"/lejuAdmin/advertise/adsList",
		 method:"GET",
		
		 
	 })
 }
 
 // 删除广告列表
 function delAds(adsId){
 	 return request({
 		 url:`/lejuAdmin/advertise/delAds/${adsId}`,
 		 method:"DELETE",
 		
 		 
 	 })
  }
  
  // 新增广告
  function addAds(data){
  	 return request({
  		 url:"/lejuAdmin/advertise/addAds",
  		 method:"POST",
  		data
  		 
  	 })
   }
   // 更新广告
   function updateAds(data){
   	 return request({
   		 url:"/lejuAdmin/advertise/updateAds",
   		 method:"POST",
   		data
   		 
   	 })
    }
	export{
		adsList,
		delAds,
		addAds,
		updateAds
	}
   